from selenium import webdriver
import time
from selenium.webdriver.common.by import By
wd = webdriver.Chrome()
url = 'http://www.baidu.com'
wd.get(url)
time.sleep(5)
element = wd.find_element(By.ID, 'su')
print(element.get_attribute('value'))
wd.close()
